<!DOCTYPE html>
<html lang="zh">
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>联系人列表</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>

    <link rel="stylesheet" href="/css/skin.css">
    <link rel="stylesheet" href="/css/contactManager/contactForm.css">
</head>
<body>
<div class="container-fluid contact-page">
    <div class="card m-b-0">
        <div class="card-header">
            <h1>联系人列表</h1>
            <div class="card-actions">
                <button type="button" data-toggle="modal" data-target="#editTags" class="btn btn-success btn-label"><label><i class="mdi mdi-tag-plus"></i></label>设置联系人标签</button>
            </div>
        </div>
        <div class="card-body">
            <input type="text" id="contentType" value="" hidden>
            <ul class="new-tabs" id="tabsBar">
                <li class="nav-item active"><a href="#!" data-value="">全部联系人</a></li>
                <li class="nav-item"><a href="#!" data-value="1">最近跟进(7天)</a></li>
                <li class="nav-item"><a href="#!" data-value="2">未跟进(30天)</a></li>
                <li class="nav-item"><a href="#!" data-value="3">计划跟进</a></li>
                <li class="nav-item"><a href="#!" data-value="4">意向联系人</a></li>
            </ul>
            <div class="well filter-well" id="screenWell">
                <div class="row">
                    <div class="col-xs-4 group">
                        <label>行业：</label>
                        <div>
                            <select name="screenIndustry" id="screenIndustry" title="请选择行业类型" class="form-control"></select>
                        </div>
                    </div>
                    <div class="col-xs-4 group">
                        <label>地区：</label>
                        <div>
                            <select name="screenProvince" id="screenProvince" title="请选择所属地区" class="form-control"></select>
                        </div>
                    </div>
                    <div class="col-xs-4 group">
                        <label>职务：</label>
                        <div>
                            <select name="screenPost" id="screenPost" title="请选择职务类型" class="form-control">
                                <option value="">不限</option>
                                <option value="财务副总裁/财务总经理">财务副总裁/财务总经理</option>
                                <option value="财务总监/总会计师">财务总监/总会计师</option>
                                <option value="审计及证券">审计及证券</option>
                                <option value="财务经理/财务处长/财务部长">财务经理/财务处长/财务部长</option>
                                <option value="财务主管/财务科长">财务主管/财务科长</option>
                                <option value="办公室及人资">办公室及人资</option>
                                <option value="会计及出纳">会计及出纳</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="row" style="display: none;">
                    <div class="col-xs-4 group">
                        <label>企业性质：</label>
                        <div>
                            <select name="screenCompanyType" id="screenCompanyType" title="请选择企业性质" class="form-control" data-live-search="true">
                                <option value="">不限</option>
                                <option value="1">有限责任公司</option>
                                <option value="2">股份有限公司</option>
                                <option value="3">集体所有制</option>
                                <option value="4">国有企业</option>
                                <option value="5">个体工商户</option>
                                <option value="6">个人独资企业</option>
                                <option value="7">有限合伙</option>
                                <option value="8">普通合伙</option>
                                <option value="9">外商独资企业</option>
                                <option value="10">港澳台</option>
                                <option value="11">联营企业</option>
                                <option value="12">私营企业</option>
                                <option value="13">企业</option>
                                <option value="14">事业单位</option>
                                <option value="15">基金会</option>
                                <option value="16">社会组织</option>
                                <option value="17">律所</option>
                                <option value="18">香港特别行政区企业</option>
                                <option value="19">台湾省企业</option>
                                <option value="20">独资企业</option>
                                <option value="21">国企</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-xs-4 group">
                        <label>客户性质：</label>
                        <div>
                            <select name="screenNature" id="screenNature" title="请选择客户性质" class="form-control">
                                <option value="">不限</option>
                                <option value="0">非会员</option>
                                <option value="1">会员</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-xs-4 group">
                        <label>在职离职：</label>
                        <div>
                            <select name="screenJob" id="screenJob" title="请选择" class="form-control">
                                <option value="">不限</option>
                                <option value="0">在职</option>
                                <option value="1">离职</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-xs-4 group">
                        <label>录入时间：</label>
                        <div>
                            <input type="text" id="screenTime" class="form-control" placeholder="请选择录入时间">
                        </div>
                    </div>
                    <div class="col-xs-4 group">
                        <label>标签：</label>
                        <div>
                            <select name="" id="screenTags" title="请选择所属标签" class="form-control" data-live-search="true"></select>
                        </div>
                    </div>
                    <!--<div class="col-xs-4 group">
                        <label>废止状态：</label>
                        <div>
                            <select class="form-control" id="screenAbolish" name="screenAbolish" type="text"
                                    title="请选择废止状态">
                                <option value="">不限</option>
                                <option value="1">无废止</option>
                                <option value="2">废止</option>
                            </select>
                        </div>
                    </div>-->
                </div>
                <a href="#!" class="active">展开<i class="mdi mdi-chevron-down"></i></a>
            </div>


            <div class="row content-action">
                <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
                    <div id="dateType" class="select-switch">
                        <label for="all"><input type="radio" name="date" value="all" id="all" checked><span>全部</span></label>
                        <label for="week"><input type="radio" name="date" value="thisWeek" id="week"><span>本周</span></label>
                        <label for="month"><input type="radio" name="date" value="thisMonth" id="month"><span>本月</span></label>
                    </div>
                </div>
                <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">
                    <div class="pull-right">
                        <div class="pull-left contact-category">
                            <select name="contactCategory" id="contactCategory" class="form-control">
                                <option>全部联系人</option>
                                <option value="1">只显示可用</option>
                                <option value="2">只显示作废</option>
                                <option value="0">只显示常用联系人</option>
                            </select>
                        </div>
                        <!--<button class="btn btn-default" data-toggle="collapse" data-target="#filterContent"
                                aria-expanded="false" aria-controls="filterContent"><i class="mdi mdi-sort-variant"></i>高级筛选
                        </button>-->
                        <div class="min-search pull-left" style="width: 320px; margin-left: 12px;">
                            <input class="form-control" type="text" placeholder="请输入客户名称/联系人/联系方式"
                                   id="contactName" name="contactName">
                            <button class="btn btn-primary" type="button" id="searchTwo"
                                    onclick="searchCustomerPoolList(this, 5,'')">
                                <i class="mdi mdi-magnify"></i><span>搜索</span>
                            </button>
                        </div>
                        <button type="button" class="btn btn-success btn-label" onclick="addContact()"><label><i class="mdi mdi-plus-circle-outline"></i></label>新增联系人</button>
                    </div>
                </div>
            </div>
            <!--高级搜索内容-->
            <div class="collapse filter-content" id="filterContent">
                <div class="row">
                    <div class="form-group col-lg-3 col-md-3 col-sm-6 col-xs-12">
                        <label for="custName">客户名称</label>
                        <div>
                            <input placeholder="请输入客户名称" name="custName" id="custName" type="text" class="form-control"
                                   autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-3 col-sm-6 col-xs-12">
                        <label for="contactInformation">联系方式</label>
                        <div>
                            <input placeholder="请输入联系方式" name="contactInformation" id="contactInformation" type="text"
                                   class="form-control" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-3 col-sm-6 col-xs-12">
                        <label for="abolishState">废止状态</label>
                        <div>
                            <select class="form-control" id="abolishState" name="abolishState" type="text"
                                    title="请选择废止状态" data-live-search="true">
                                <option value="">请选择废止状态</option>
                                <option value="1">无废止</option>
                                <option value="2">废止</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-3 col-sm-6 col-xs-12">
                        <label>&nbsp;</label>
                        <div class="text-right">
                            <button class="btn btn-primary" type="button" id="search"
                                    onclick="searchCustomerPoolList(this, 6,'')"><i
                                    class="mdi mdi-magnify"></i><span>搜索</span></button>
                            <button class="btn btn-default" id="btn-reset">重置</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="batch-btn">
                <button type="button" data-toggle="collapse" data-target="#batchCollapse" aria-expanded="true" aria-controls="batchCollapse" class="btn btn-link hidden" id="batchBtn" disabled>批处理<i class="mdi mdi-sort-variant"></i></button>
                <div class="collapse batch-collapse" id="batchCollapse">
                    <p>批量设置跟进计划：</p>
                    <div class="select-box">
                        <input type="text" placeholder="请选择跟进日期" class="form-control" id="batchDate">
                    </div>
                    <div class="clearfix">
                        <button type="button" class="btn btn-sm btn-primary pull-right" onclick="batchFollow();">确定</button>
                    </div>
                </div>
            </div>
            <table id="contactList" class="contactList"></table>
        </div>
    </div>
</div>

<!-- 修改联系人 -->
<div class="modal fade" tabindex="-1" role="dialog" id="editModel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4>修改联系人信息</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal">
                    <div class="form-group">
                        <label class="control-label col-xs-3">姓名</label>
                        <div class="col-xs-7">
                            <input id="contactNameLxr" type="text" class="form-control" disabled="disabled">
                            <input id="contactIdLxr" type="hidden">
                            <input id="customerIdLxr" type="hidden">
                            <input id="contactNatureLxr" type="hidden">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">职务</label>
                        <div class="col-xs-7">
                            <input type="text" placeholder="请输入或选择职务名称" id="contactPositionLxr" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" class="form-control">
                            <ul class="dropdown-menu">
                                <li><a href="#!">财务副总裁/财务总经理</a></li>
                                <li><a href="#!">财务总监/总会计师</a></li>
                                <li><a href="#!">审计及证券</a></li>
                                <li><a href="#!">财务经理/财务处长/财务部长</a></li>
                                <li><a href="#!">财务主管/财务科长</a></li>
                                <li><a href="#!">办公室及人资</a></li>
                                <li><a href="#!">会计及出纳</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">在职情况</label>
                        <div class="col-xs-7">
                            <select class="form-control" id="onTheJobSituationLxr" title="请选择">
                                <option value="0">在职</option>
                                <option value="1">离职</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">联系方式</label>
                        <div class="col-xs-7">
                            <input type="text" id="contactInformationLxr" class="form-control" disabled="disabled">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">邮箱</label>
                        <div class="col-xs-7">
                            <input maxlength="20" id="mailBoxLxr" type="text" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">微信</label>
                        <div class="col-xs-7">
                            <input maxlength="20" id="wxLxr" type="text" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">家庭住址</label>
                        <div class="col-xs-7">
                            <input maxlength="20" id="homeAddressLxr" type="text" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">公司地址</label>
                        <div class="col-xs-7">
                            <input maxlength="20" id="companyAddressLxr" type="text" class="form-control">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="updateContact();">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- 标签 -->
<div class="modal fade" role="dialog" id="editTags">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4>联系人标签</h4>
            </div>
            <div class="modal-body">
                <table id="tagsTable"></table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success btn-label" onclick="addTags();"><label><i class="mdi mdi-plus"></i></label>新增标签</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<script src="/js/crm/common/city.js"></script>
<script src="/js/crm/common/common.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>

<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/contactManager/user/contactFormUser.js"></script>
</html>